package test;

import java.util.*;

public class Demo5 {

    public static void main(String[] args) {
        Scanner shuRu = new Scanner(System.in);

        while (shuRu.hasNext()) {

            int zonSum = Integer.parseInt(shuRu.nextLine());

            if (zonSum > 100) {
                System.out.println("False");
                return;
            }

            List<String> jiHeList = new ArrayList<>();
            for (int iNum = 0; iNum < zonSum; iNum++) {
                String line = shuRu.nextLine();
                jiHeList.add(line);
            }

            if (jiHeList.size() <= 0) {
                System.out.println("False");
                return;
            }

            //check
            for (int jNum = 0; jNum < jiHeList.size(); jNum++) {
                String tarStr = new StringBuilder(jiHeList.get(jNum)).reverse().toString();
                if (!jiHeList.contains(tarStr)) {
                    System.out.println("False");
                    return;
                }
            }

            System.out.println("True");
        }
    }
}
